public class Init {
    public static void main(String[] args) {
        //常量字符串引用
        String str1 = "hello";
        System.out.println(str1);
        //new String对象
        String str2 = new String("hello");
        System.out.println(str2);
        //字符数组
        char [] arr= {'h','e','l','l','o'};
        String str3 = new String(arr);
        System.out.println(str3);

    }
}
